package com.stylefeng.guns.modular.operation_log.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-10-01
 */
@TableName("operation_log")
public class MOperationLog extends Model<MOperationLog> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 操作类型：1-给商户添加可用设备数量
     */
    private Integer type;
    /**
     * 操作用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 商户ID
     */
    @TableField("merchant_id")
    private Integer merchantId;
    /**
     * 操作时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 操作内容，当type为1时，操作内容为数量
     */
    @TableField("operation_content")
    private String operationContent;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOperationContent() {
        return operationContent;
    }

    public void setOperationContent(String operationContent) {
        this.operationContent = operationContent;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OpertationLog{" +
        "id=" + id +
        ", type=" + type +
        ", userId=" + userId +
        ", merchantId=" + merchantId +
        ", createTime=" + createTime +
        ", operationContent=" + operationContent +
        "}";
    }
}
